#include		"manager.h"

Manager::Manager(Processor & proc) : _network(_async, proc.getPacketHandler()), _audio(_time)
{

}

Manager::~Manager()
{

}

IApi			*Manager::getApi()
{
	return new Api(_network.getApi(), _audio.getApi(), _time.getApi(), _client.getApi());
}

void			Manager::start()
{
	_network.start();
	_audio.start();
	_async.start();
	_time.start();
	_client.start();
}

void			Manager::wait()
{
	_async.wait();
}